package cn.tiga.system.service.impl;

import cn.tiga.basic.service.impl.BaseServiceImpl;

import cn.tiga.system.domain.DictionaryDetail;
import cn.tiga.system.mapper.DictionaryDetailMapper;
import cn.tiga.system.service.IDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DictionaryDetailServiceImpl extends BaseServiceImpl<DictionaryDetail> implements IDictionaryDetailService {
    @Autowired
    private DictionaryDetailMapper dictionaryDetailMapper;

    @Override
    public List<DictionaryDetail> findType(Long id) {
        List<DictionaryDetail> dictionaryDetails = dictionaryDetailMapper.loadByTypeID(id);
        return dictionaryDetails;
    }
}
